<?
$search = new Search ('search.xml', 'list.xml');

$search->recovery ();

$view = new View ('list.xml');

$WHERE = $search->makeWhere ();

$user=User::singleton()->isAdmin ();
if (!$user)
{
   
      $WHERE = (trim($WHERE)=='')?($WHERE):($WHERE.' AND ');
      $WHERE .="  _user=".User::singleton()->getId()."";
	
}

if (!$view->load ($WHERE))
	throw new Exception (__ ('N&atilde;o pode Carregar os dados!'));
?>




